var mongodb = require('mongoose');
var db = mongodb.connect('mongodb://localhost:27017/test');//；连接数据库
console.log('db connected');